//
/***********************************************************
             File name:      main.c
             Author:         Bitat (陆叁柒)
             Email :         Bitat@qq.com
             Gitee :         https://gitee.com/bitat
             CSDN  :         https://blog.csdn.net/bitat 
             History:        2023/2/13
************************************************************/
    
#include <stdio.h>
#include <assert.h>

void my_strcpy(char* arr1,char* arr)
{
    assert(arr && arr1);
    while((*arr1++ = *arr++))
    {
        ;
    }
}

int main()
{
    char arr[] = "hello world";
    char arr1[20] = {0};
    my_strcpy(arr1,arr);
    printf("%s\n",arr1);
    
    return 0;
}
